from server.IOServer import Server
from socketio import RedisManager
from namespace.BaseNamespace import BaseNamespace
import config

# 使用redis订阅发布， 后期负载均衡做准备
# manager = RedisManager()
sio = Server(async_model=config.ASYNC_MODEL, cors_allowed_origins=config.CORS_ALLOWED_ORIGINS, )
sio.register_namespace(BaseNamespace('/'))
